
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, and Azure
-- --------------------------------------------------
-- Date Created: 07/19/2011 22:54:41
-- Generated from EDMX file: E:\MyProject\BooksManage\BooksManage.Service.Data\BooksManage.edmx
-- --------------------------------------------------

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Users]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Users]
GO

CREATE TABLE [dbo].[Users] (
	[UserID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserCode] [nvarchar] (50) NULL ,
	[UserName] [nvarchar] (50) NULL ,
	[Passwd] [nvarchar] (50) NULL ,
	[IsDisabled] [bit] NULL ,
	[Note] [nvarchar] (50) NULL 
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[Users] WITH NOCHECK ADD 
	CONSTRAINT [PK_Users] PRIMARY KEY  CLUSTERED 
	(
		[UserID]
	)  ON [PRIMARY] 
GO

-- --------------------------------------------------
-- Script has ended
-- --------------------------------------------------
